xen/arm: mark handle_linux_pci_domain() __init
authorStewart Hildebrand <stewart.hildebrand@amd.com>
Fri, 14 Oct 2022 20:09:26 +0000 (16:09 -0400)
committerJulien Grall <jgrall@amazon.com>
Fri, 21 Oct 2022 10:09:59 +0000 (11:09 +0100)
All functions in domain_build.c should be marked __init. This was
spotted when building the hypervisor with -Og.

Fixes: 1050a7b91c2e ("xen/arm: add pci-domain for disabled devices")
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
xen/arch/arm/domain_build.c

index db97536fe8aa6968ed0e901f84be5c33acba0b3c..4fb5c20b132dfc53b83021679dc3b9154b7a876a 100644 (file)
@@ -1051,8 +1051,8 @@ static void __init assign_static_memory_11(struct domain *d,
  * The current heuristic assumes that a device is a host bridge
  * if the type is "pci" and then parent type is not "pci".
  */
-static int handle_linux_pci_domain(struct kernel_info *kinfo,
-                                   const struct dt_device_node *node)
+static int __init handle_linux_pci_domain(struct kernel_info *kinfo,
+                                          const struct dt_device_node *node)
 {
     uint16_t segment;
     int res;